﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="RecentNews.ascx.cs" Inherits="Admin.Controls.Homepage.RecentNews" %>
<!--[if !IE]>start section<![endif]-->
<div class="section">
<div class="title_wrapper">
	<h2>Các bài gần đây</h2>
	<a href="/ListNews.aspx" class="view_all_orders">Xem tất cả</a>
</div>
<!--[if !IE]>start section inner<![endif]-->
<div class="section_inner">
	<!--[if !IE]>start table_wrapper<![endif]-->
	<div class="table_wrapper">
		<div class="table_wrapper_inner">
		<table cellpadding="0" cellspacing="0" width="100%">
			<tbody><tr>
				<th>Tên</th>
				<th>Tình trạng</th>
				<th>Chuyên mục</th>
				<th>Ngày</th>
				<th>Lần xem</th>
				<th style="width:40px"></th>
			</tr>
			<asp:Repeater ID="rptRecentNews" runat="server">
			<ItemTemplate>
			<tr class="first">
				<td><%#Eval("News_Title") %></td>
				<td><%#Eval("StatusText") %></td>
				<td><%#Eval("Category_Name") %></td>
				<td><%#Eval("CreatedDateText")%></td>
				<td><%#Eval("News_View") %></td>
				<td>
					<div class="actions">
						<ul>
							<li><a class="edit" href="/EditNews.aspx?newsid=<%#Eval("News_ID") %>">Sửa</a></li>
							<li><a class="delete" href="/DeleteNews.aspx?news_ID=<%#Eval("News_ID") %>&return=<%=Return %>">Xóa</a></li>
						</ul>
					</div>
				</td>
			</tr>
			</ItemTemplate>
			<AlternatingItemTemplate>
			<tr class="second">
				<td><%#Eval("News_Title") %></td>
				<td><%#Eval("StatusText") %></td>
				<td><%#Eval("Category_Name") %></td>
				<td><%#Eval("CreatedDateText")%></td>
				<td><%#Eval("News_View") %></td>
				<td>
					<div class="actions">
						<ul>
							<li><a class="edit" href="/EditNews.aspx?newsid=<%#Eval("News_ID") %>">Sửa</a></li>
							<li><a class="delete" href="/DeleteNews.aspx?news_ID=<%#Eval("News_ID") %>&return=<%=Return %>">Xóa</a></li>
						</ul>
					</div>
				</td>
			</tr>
			</AlternatingItemTemplate>
			</asp:Repeater>
			
		</tbody></table>
		</div>
	</div>
	<!--[if !IE]>end table_wrapper<![endif]-->
</div>
<!--[if !IE]>end section inner<![endif]-->
</div>
<!--[if !IE]>end section<![endif]-->